<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>乔司街道</title>
    <script src="../lib/ol4/ol4.js"></script>
    <script src="../lib/bd09.js"></script>
    <link rel="stylesheet" href="../css/ol4/ol.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html, body {
            width: 100%;
            height: 100%;
        }

        #map {
            width: auto;
            height: 100%;
        }
    </style>
</head>
<body>
<div id="map"></div>
</body>
<script>
    // const boundString = '120.28914554744506,30.32810216827326;120.28942754747735,30.328094168687286;120.28934354781178,30.32751918384177;120.28917054755946,30.326328215202977;120.28935954770539,30.323694284980178;120.28931554732446,30.322223323762472;120.28970454748696,30.320444371199542;120.29152054752933,30.320648365901153;120.29105554719888,30.323556289115626;120.29090454758611,30.32554023663484;120.29096854805849,30.327367187589847;120.29585054757293,30.327606181850665;120.29595754770305,30.32755418310366;120.29600454755882,30.32356128899182;120.29560154805105,30.320388372807983;120.29536654787441,30.31912440580059;120.29492354728536,30.31556650007282;120.29467554758824,30.313570552985706;120.29400954741644,30.313263560769204;120.29334554779265,30.314149537474712;120.29403454753076,30.31445652924226;120.29259254758215,30.317460450196503;120.29152054752933,30.31959539368314;120.2906095480334,30.319192404222147;120.291575547781,30.31739445204491;120.28922454798628,30.317683443716188;120.28839154740982,30.317731442446192;120.28739254805035,30.317908438190013;120.28757154725213,30.31988938590519;120.28766754751159,30.32026537552163;120.28760254721429,30.320379373049377;120.28364054741658,30.320924358649254;120.27838454780823,30.321514342602;120.27681254726502,30.321690338186343;120.27600054750329,30.32179433567521;120.27517254784804,30.321901332409738;120.27370154758712,30.322090327327324;120.27091554759923,30.322448317890736;120.26996954794316,30.322570314467047;120.2686845474551,30.32276331004353;120.26840554779584,30.322887306811978;120.26834654734631,30.322970303892188;120.26837754730848,30.32318129846047;120.2687075479196,30.323922278901133;120.26922454723024,30.324393266980124;120.26964754772786,30.324660259893186;120.27210754730253,30.325947225839776;120.27241854764713,30.32625621760098;120.27294354735368,30.326565209162897;120.27331254742462,30.3267712040298;120.2737045479601,30.3267142051246;120.2741575476966,30.327100195076312;120.27442154728728,30.327714178682406;120.27497054728327,30.328214165509674;120.27498854772493,30.32840516034984;120.27486954789921,30.328498158205978;120.2748975474883,30.328602155445566;120.27477554728956,30.32870315265157;120.2763425478099,30.330626101564466;120.27701354800463,30.331241085758688;120.27800854806446,30.33168407407455;120.27818254724343,30.332035064624357;120.27789654791148,30.332204060085125;120.27792754787359,30.332823043661573;120.27744654764963,30.333112036337354;120.27713354765521,30.33360302264927;120.2769145473721,30.334075010873022;120.2759895476324,30.336068957780185;120.27534554720182,30.337709914239205;120.27492854745027,30.33949686740333;120.27488054776968,30.339702861427664;120.27432254755283,30.33971086161587;120.27415954734624,30.3398118589937;120.27368954789127,30.340530839840874;120.27358454741093,30.340521839607604;120.27311954797885,30.340260847211315;120.27129254806577,30.33923587382484;120.27077954805482,30.33894888164847;120.26868454745482,30.33762891675282;120.26708454732257,30.33662194335755;120.26221254785388,30.333914014650755;120.26221254785388,30.333827016818127;120.26273954721027,30.333124035488574;120.26366954787116,30.33145007993377;120.2637285474224,30.331214086370622;120.2636575472772,30.33117208696373;120.2624355474367,30.330479105780054;120.26144854777282,30.330016117706663;120.2612195474439,30.32984012234936;120.26131254733035,30.32962612827338;120.26124354773337,30.329545130303053;120.2602395474527,30.32897514582178;120.25935854719569,30.330167114281828;120.25933954782737,30.330205113249786;120.25877254738978,30.33131908325815;120.25861554792918,30.33166307447356;120.25834354794262,30.331811070232188;120.25731454754757,30.332708046467054;120.25683654769666,30.333916015009812;120.25698254728654,30.334182007372366;120.25695354787257,30.33431700402132;120.25682154762804,30.334398001921432;120.2564735474735,30.33431300409457;120.25627654783001,30.33438900189959;120.25623154762415,30.334730992842836;120.25515254789875,30.336370949862854;120.25440654736092,30.336708941032413;120.2539855474114,30.337423921609137;120.25433354756593,30.33769991438032;120.25429854740585,30.338017905963145;120.25550554807612,30.338480894192227;120.25625354736542,30.338861883637346;120.2583425472193,30.34023584743929;120.25841254753946,30.340471840966178;120.25829154806395,30.340958828704366;120.25784654782501,30.341417816567862;120.2575285478077,30.341543813179033;120.25728554723513,30.34144381536503;120.25724454722724,30.341216821250473;120.25710454748518,30.34111182412267;120.25570554719432,30.340671836152016;120.25512654795938,30.34059183812667;120.25297054726002,30.34132281914478;120.25200254786266,30.341410816622044;120.25149854807255,30.34131281888014;120.25083654720028,30.340998827575035;120.25056654776189,30.340684836037973;120.24991554765866,30.340489840665697;120.24881254764377,30.34001985336429;120.24799754750894,30.341601811305903;120.2475295477038,30.342308792610982;120.2464605480241,30.342528786653325;120.24495254795333,30.342237794449225;120.24166654747494,30.341603811507877;120.2402445476178,30.341329818321146;120.2393035479846,30.342755780826337;120.2386625479271,30.343924750308094;120.23752054755411,30.344704729230052;120.23665254771589,30.34550570787516;120.23629554734049,30.345360712073834;120.23377354784162,30.344342739107425;120.23176954747827,30.3435337603729;120.23086854802801,30.343334765690802;120.22988054764086,30.343003773971162;120.22869354796042,30.343742754667634;120.22850854801253,30.343808752895665;120.22836554789734,30.3438597514607;120.22820054804093,30.34391774976615;120.22788854787137,30.344140744293984;120.22749354786117,30.34504672057414;120.22749054748812,30.345244714812775;120.22829554757712,30.345615705241435;120.2347145474747,30.348710623600667;120.23633154732546,30.349580600292192;120.23714854800838,30.350172584495116;120.23856954804053,30.351529548448624;120.24022554735105,30.35361249373607;120.24050754738333,30.353993483194454;120.24050354808365,30.354520469862713;120.24007254719014,30.354939458330367;120.23991654755453,30.355309448477175;120.23967554753004,30.356162426222937;120.23960354756002,30.357684385946147;120.23949954780294,30.358265370714594;120.23881554718936,30.360092321774072;120.23858454721069,30.360495311105197;120.23861654789606,30.360647307078974;120.23873554772176,30.360728304892994;120.23969254724841,30.361032297430402;120.2421105478886,30.361861275104125;120.24306254739237,30.362120268243267;120.24324454786559,30.362256265003456;120.24321354790345,30.362715252963817;120.24652354777291,30.366648148305217;120.24693854787462,30.367054138049635;120.24742554794634,30.36708613682984;120.24905854769062,30.365968166795952;120.2491425473562,30.366011165074845;120.25025054739396,30.367308131421854;120.25040354755482,30.367591123241898;120.25074054783869,30.367715120585633;120.2511695472858,30.36801111213402;120.2515565477984,30.368344103395735;120.25219954750577,30.36901108621357;120.2537875479425,30.370418048906707;120.25649754776235,30.373660962981287;120.2591585480767,30.37669688271786;120.26187554756922,30.3799957954002;120.2645245472897,30.38321170970987;120.26748554807803,30.386914611919526;120.27173554775572,30.392020476584698;120.27401054738242,30.39487040071452;120.27546854722452,30.39664735410141;120.27649754761953,30.397832322729364;120.27958254735806,30.403008185779992;120.27972654729813,30.40279519085079;120.2805205475165,30.40132022997906;120.28060354735719,30.400839243019263;120.28107954755825,30.399787270844158;120.28118554786347,30.399226285976976;120.28110054747471,30.399065290056228;120.28042854745505,30.39883129592106;120.28050554744797,30.398704299210422;120.27962454719093,30.398297310463548;120.28064454736517,30.395994371414734;120.28099954719242,30.396067369159653;120.28261154791868,30.392854454391514;120.2830515472364,30.39296745147417;120.28371254738546,30.3915754879687;120.28605254730948,30.39219547209292;120.28620554747039,30.391774482914478;120.28827554795598,30.392180472136104;120.28840654747722,30.392000477122895;120.28915554748973,30.392019476224796;120.28941754743065,30.391725484488763;120.29124054804399,30.39198447755025;120.29198854733336,30.39187648036545;120.29185054724108,30.39126049646474;120.29108954753303,30.388156578846427;120.2905305474913,30.386090633341503;120.29032154725394,30.385259655656018;120.2899435478606,30.378276840258778;120.28991754792136,30.37779785322552;120.28974654731887,30.37478993311692;120.2896585474553,30.373254973544288;120.28956654739386,30.37163801609243;120.28956654739386,30.371389022875213;120.28956754721888,30.36552717834616;120.28951154804072,30.3646782003377;120.28987154789087,30.360065322594462;120.28994454768582,30.35995532596862;120.29016554761876,30.359968325618606;120.29094854796648,30.360341315852775;120.29100954806584,30.36043331291578;120.29097854720537,30.36061830823914;120.29160054789463,30.360998298415478;120.29185554726446,30.361153294086538;120.2933065474338,30.361726278466644;120.29609654761967,30.362395261241932;120.29652354741697,30.362377261695777;120.29656054722689,30.36217126734271;120.29667754740277,30.36045831217868;120.29702054753447,30.359385341049318;120.29693654786885,30.35926234391683;120.297585547424,30.358193372572323;120.29765754739407,30.357814382287064;120.29763054762985,30.35748439142137;120.29811654787667,30.356642413771436;120.29812754774734,30.356153426653663;120.29767454801086,30.354896459836826;120.29926254754929,30.35471746434753;120.29932154799887,30.353877486865898;120.29959154743729,30.35293751145102;120.29990154795702,30.35288151303636;120.29991054727952,30.35249452318554;120.29981054772043,30.35231952791935;120.29981654756823,30.351483550006662;120.29659654721209,30.350214583504524;120.29671654776102,30.34964659846132;120.29677354766243,30.348715622969344;120.2968385479598,30.34766465105324;120.29700554746607,30.34716666440833;120.29733554807727,30.346733675312027;120.29731454726256,30.346465682839415;120.29660954763094,30.34579870056009;120.29530954797262,30.34429674038841;120.29416254757686,30.34211079786161;120.29359054801465,30.34051984015918;120.29340054804382,30.340425842753135;120.29308954769917,30.340033852680108;120.2922715471914,30.338134903397382;120.29209754801244,30.33773091409387;120.29123254764899,30.335099983242266;120.29083154779109,30.334124009502485;120.29057954789599,30.333277031521437;120.28970354766187,30.33034110939544;120.2894435473709,30.329467132166336;120.28931154802473,30.329024143902;120.28914554744506,30.32810216827326';
    // const boundString = '120.289145547445,30.3281021682733;120.289427547477,30.3280941686873;120.289343547812,30.3275191838418;120.289170547559,30.326328215203;120.289359547705,30.3236942849802;120.289315547324,30.3222233237625;120.289704547487,30.3204443711996;120.291520547529,30.3206483659012;120.291055547199,30.3235562891156;120.290904547586,30.3255402366349;120.290968548058,30.3273671875898;120.295850547573,30.3276061818507;120.295957547703,30.3275541831037;120.296004547559,30.3235612889918;120.295601548051,30.320388372808;120.295366547874,30.3191244058006;120.294923547285,30.3155665000728;120.294675547588,30.3135705529857;120.294009547416,30.3132635607692;120.293345547793,30.3141495374747;120.294034547531,30.3144565292423;120.292592547582,30.3174604501965;120.291520547529,30.3195953936832;120.290609548033,30.3191924042221;120.291575547781,30.3173944520449;120.289224547986,30.3176834437162;120.28839154741,30.3177314424462;120.28739254805,30.31790843819;120.287571547252,30.3198893859052;120.287667547512,30.3202653755216;120.287602547214,30.3203793730494;120.283640547417,30.3209243586493;120.278384547808,30.321514342602;120.276812547265,30.3216903381864;120.276000547503,30.3217943356752;120.275172547848,30.3219013324097;120.273701547587,30.3220903273273;120.270915547599,30.3224483178907;120.269969547943,30.322570314467;120.268684547455,30.3227633100435;120.268405547796,30.322887306812;120.268346547346,30.3229703038922;120.268377547308,30.3231812984605;120.26870754792,30.3239222789011;120.26922454723,30.3243932669801;120.269647547728,30.3246602598932;120.272107547303,30.3259472258398;120.272418547647,30.326256217601;120.272943547354,30.3265652091629;120.273312547425,30.3267712040298;120.27370454796,30.3267142051246;120.274157547697,30.3271001950763;120.274421547287,30.3277141786824;120.274970547283,30.3282141655097;120.274988547725,30.3284051603498;120.274869547899,30.328498158206;120.274897547488,30.3286021554456;120.27477554729,30.3287031526516;120.27634254781,30.3306261015645;120.277013548005,30.3312410857587;120.278008548064,30.3316840740745;120.278182547243,30.3320350646244;120.277896547911,30.3322040600851;120.277927547874,30.3328230436616;120.27744654765,30.3331120363374;120.277133547655,30.3336030226493;120.276914547372,30.334075010873;120.275989547632,30.3360689577802;120.275345547202,30.3377099142392;120.27492854745,30.3394968674033;120.27488054777,30.3397028614277;120.274322547553,30.3397108616159;120.274159547346,30.3398118589937;120.273689547891,30.3405308398409;120.273584547411,30.3405218396076;120.273119547979,30.3402608472113;120.271292548066,30.3392358738248;120.270779548055,30.3389488816485;120.268684547455,30.3376289167528;120.267084547323,30.3366219433575;120.262212547854,30.3339140146508;120.262212547854,30.3338270168181;120.26273954721,30.3331240354886;120.263669547871,30.3314500799338;120.263728547422,30.3312140863706;120.263657547277,30.3311720869637;120.262435547437,30.3304791057801;120.261448547773,30.3300161177067;120.261219547444,30.3298401223494;120.26131254733,30.3296261282734;120.261243547733,30.3295451303031;120.260239547453,30.3289751458218;120.259358547196,30.3301671142818;120.259339547827,30.3302051132498;120.25877254739,30.3313190832582;120.258615547929,30.3316630744736;120.258343547943,30.3318110702322;120.257314547548,30.3327080464671;120.256836547697,30.3339160150098;120.256982547287,30.3341820073724;120.256953547873,30.3343170040213;120.256821547628,30.3343980019214;120.256473547474,30.3343130040946;120.25627654783,30.3343890018996;120.256231547624,30.3347309928428;120.255152547899,30.3363709498628;120.254406547361,30.3367089410324;120.253985547411,30.3374239216091;120.254333547566,30.3376999143803;120.254298547406,30.3380179059631;120.255505548076,30.3384808941922;120.256253547365,30.3388618836374;120.258342547219,30.3402358474393;120.258412547539,30.3404718409662;120.258291548064,30.3409588287044;120.257846547825,30.3414178165679;120.257528547808,30.341543813179;120.257285547235,30.341443815365;120.257244547227,30.3412168212505;120.257104547485,30.3411118241227;120.255705547194,30.340671836152;120.255126547959,30.3405918381267;120.25297054726,30.3413228191448;120.252002547863,30.341410816622;120.251498548073,30.3413128188801;120.2508365472,30.340998827575;120.250566547762,30.340684836038;120.249915547659,30.3404898406657;120.248812547644,30.3400198533643;120.247997547509,30.3416018113059;120.247529547704,30.342308792611;120.246460548024,30.3425287866533;120.244952547953,30.3422377944492;120.241666547475,30.3416038115079;120.240244547618,30.3413298183212;120.239303547985,30.3427557808263;120.238662547927,30.3439247503081;120.237520547554,30.3447047292301;120.236652547716,30.3455057078752;120.23629554734,30.3453607120738;120.233773547842,30.3443427391074;120.231769547478,30.3435337603729;120.230868548028,30.3433347656908;120.229880547641,30.3430037739712;120.22869354796,30.3437427546676;120.228508548013,30.3438087528957;120.228365547897,30.3438597514607;120.228200548041,30.3439177497662;120.227888547871,30.344140744294;120.227493547861,30.3450467205742;120.227490547488,30.3452447148128;120.228295547577,30.3456157052414;120.234714547475,30.3487106236007;120.236331547325,30.3495806002922;120.237148548008,30.3501725844951;120.238569548041,30.3515295484486;120.240225547351,30.3536124937361;120.240507547383,30.3539934831944;120.240503548084,30.3545204698627;120.24007254719,30.3549394583304;120.239916547555,30.3553094484772;120.23967554753,30.3561624262229;120.23960354756,30.3576843859462;120.239499547803,30.3582653707146;120.238815547189,30.3600923217741;120.238584547211,30.3604953111052;120.238616547896,30.360647307079;120.238735547722,30.360728304893;120.239692547248,30.3610322974304;120.242110547889,30.3618612751041;120.243062547392,30.3621202682433;120.243244547866,30.3622562650035;120.243213547903,30.3627152529638;120.246523547773,30.3666481483052;120.246938547875,30.3670541380496;120.247425547946,30.3670861368298;120.249058547691,30.3659681667959;120.249142547356,30.3660111650749;120.250250547394,30.3673081314218;120.250403547555,30.3675911232419;120.250740547839,30.3677151205856;120.251169547286,30.368011112134;120.251556547798,30.3683441033957;120.252199547506,30.3690110862136;120.253787547942,30.3704180489067;120.256497547762,30.3736609629813;120.259158548077,30.3766968827179;120.261875547569,30.3799957954002;120.26452454729,30.3832117097099;120.267485548078,30.3869146119195;120.271735547756,30.3920204765847;120.274010547382,30.3948704007145;120.275468547225,30.3966473541014;120.27649754762,30.3978323227294;120.279582547358,30.40300818578;120.279726547298,30.4027951908508;120.280520547517,30.4013202299791;120.280603547357,30.4008392430193;120.281079547558,30.3997872708442;120.281185547863,30.399226285977;120.281100547475,30.3990652900562;120.280428547455,30.3988312959211;120.280505547448,30.3987042992104;120.279624547191,30.3982973104636;120.280644547365,30.3959943714147;120.280999547192,30.3960673691597;120.282611547919,30.3928544543915;120.283051547236,30.3929674514742;120.283712547385,30.3915754879687;120.286052547309,30.3921954720929;120.28620554747,30.3917744829145;120.288275547956,30.3921804721361;120.288406547477,30.3920004771229;120.28915554749,30.3920194762248;120.289417547431,30.3917254844888;120.291240548044,30.3919844775502;120.291988547333,30.3918764803655;120.291850547241,30.3912604964647;120.291089547533,30.3881565788464;120.290530547491,30.3860906333415;120.290321547254,30.385259655656;120.289943547861,30.3782768402588;120.289917547921,30.3777978532255;120.289746547319,30.3747899331169;120.289658547455,30.3732549735443;120.289566547394,30.3716380160924;120.289566547394,30.3713890228752;120.289567547219,30.3655271783462;120.289511548041,30.3646782003377;120.289871547891,30.3600653225945;120.289944547686,30.3599553259686;120.290165547619,30.3599683256186;120.290948547966,30.3603413158528;120.291009548066,30.3604333129158;120.290978547205,30.3606183082391;120.291600547895,30.3609982984155;120.291855547264,30.3611532940865;120.293306547434,30.3617262784666;120.29609654762,30.3623952612419;120.296523547417,30.3623772616958;120.296560547227,30.3621712673427;120.296677547403,30.3604583121787;120.297020547534,30.3593853410493;120.296936547869,30.3592623439168;120.297585547424,30.3581933725723;120.297657547394,30.3578143822871;120.29763054763,30.3574843914214;120.298116547877,30.3566424137714;120.298127547747,30.3561534266537;120.297674548011,30.3548964598368;120.299262547549,30.3547174643475;120.299321547999,30.3538774868659;120.299591547437,30.352937511451;120.299901547957,30.3528815130364;120.29991054728,30.3524945231855;120.29981054772,30.3523195279193;120.299816547568,30.3514835500067;120.296596547212,30.3502145835045;120.296716547761,30.3496465984613;120.296773547662,30.3487156229693;120.29683854796,30.3476646510532;120.297005547466,30.3471666644083;120.297335548077,30.346733675312;120.297314547263,30.3464656828394;120.296609547631,30.3457987005601;120.295309547973,30.3442967403884;120.294162547577,30.3421107978616;120.293590548015,30.3405198401592;120.293400548044,30.3404258427531;120.293089547699,30.3400338526801;120.292271547191,30.3381349033974;120.292097548012,30.3377309140939;120.291232547649,30.3350999832423;120.290831547791,30.3341240095025;120.290579547896,30.3332770315214;120.289703547662,30.3303411093954;120.289443547371,30.3294671321663;120.289311548025,30.329024143902;120.289145547445,30.3281021682733';
    const boundString = '120.2891,30.3281;120.2894,30.3281;120.2893,30.3275;120.2892,30.3263;120.2894,30.3237;120.2893,30.3222;120.2897,30.3204;120.2915,30.3206;120.2911,30.3236;120.2909,30.3255;120.291,30.3274;120.2959,30.3276;120.296,30.3276;120.296,30.3236;120.2956,30.3204;120.2954,30.3191;120.2949,30.3156;120.2947,30.3136;120.294,30.3133;120.2933,30.3141;120.294,30.3145;120.2926,30.3175;120.2915,30.3196;120.2906,30.3192;120.2916,30.3174;120.2892,30.3177;120.2884,30.3177;120.2874,30.3179;120.2876,30.3199;120.2877,30.3203;120.2876,30.3204;120.2836,30.3209;120.2784,30.3215;120.2768,30.3217;120.276,30.3218;120.2752,30.3219;120.2737,30.3221;120.2709,30.3224;120.27,30.3226;120.2687,30.3228;120.2684,30.3229;120.2683,30.323;120.2684,30.3232;120.2687,30.3239;120.2692,30.3244;120.2696,30.3247;120.2721,30.3259;120.2724,30.3263;120.2729,30.3266;120.2733,30.3268;120.2737,30.3267;120.2742,30.3271;120.2744,30.3277;120.275,30.3282;120.275,30.3284;120.2749,30.3285;120.2749,30.3286;120.2748,30.3287;120.2763,30.3306;120.277,30.3312;120.278,30.3317;120.2782,30.332;120.2779,30.3322;120.2779,30.3328;120.2774,30.3331;120.2771,30.3336;120.2769,30.3341;120.276,30.3361;120.2753,30.3377;120.2749,30.3395;120.2749,30.3397;120.2743,30.3397;120.2742,30.3398;120.2737,30.3405;120.2736,30.3405;120.2731,30.3403;120.2713,30.3392;120.2708,30.3389;120.2687,30.3376;120.2671,30.3366;120.2622,30.3339;120.2622,30.3338;120.2627,30.3331;120.2637,30.3315;120.2637,30.3312;120.2637,30.3312;120.2624,30.3305;120.2614,30.33;120.2612,30.3298;120.2613,30.3296;120.2612,30.3295;120.2602,30.329;120.2594,30.3302;120.2593,30.3302;120.2588,30.3313;120.2586,30.3317;120.2583,30.3318;120.2573,30.3327;120.2568,30.3339;120.257,30.3342;120.257,30.3343;120.2568,30.3344;120.2565,30.3343;120.2563,30.3344;120.2562,30.3347;120.2552,30.3364;120.2544,30.3367;120.254,30.3374;120.2543,30.3377;120.2543,30.338;120.2555,30.3385;120.2563,30.3389;120.2583,30.3402;120.2584,30.3405;120.2583,30.341;120.2578,30.3414;120.2575,30.3415;120.2573,30.3414;120.2572,30.3412;120.2571,30.3411;120.2557,30.3407;120.2551,30.3406;120.253,30.3413;120.252,30.3414;120.2515,30.3413;120.2508,30.341;120.2506,30.3407;120.2499,30.3405;120.2488,30.34;120.248,30.3416;120.2475,30.3423;120.2465,30.3425;120.245,30.3422;120.2417,30.3416;120.2402,30.3413;120.2393,30.3428;120.2387,30.3439;120.2375,30.3447;120.2367,30.3455;120.2363,30.3454;120.2338,30.3443;120.2318,30.3435;120.2309,30.3433;120.2299,30.343;120.2287,30.3437;120.2285,30.3438;120.2284,30.3439;120.2282,30.3439;120.2279,30.3441;120.2275,30.345;120.2275,30.3452;120.2283,30.3456;120.2347,30.3487;120.2363,30.3496;120.2371,30.3502;120.2386,30.3515;120.2402,30.3536;120.2405,30.354;120.2405,30.3545;120.2401,30.3549;120.2399,30.3553;120.2397,30.3562;120.2396,30.3577;120.2395,30.3583;120.2388,30.3601;120.2386,30.3605;120.2386,30.3606;120.2387,30.3607;120.2397,30.361;120.2421,30.3619;120.2431,30.3621;120.2432,30.3623;120.2432,30.3627;120.2465,30.3666;120.2469,30.3671;120.2474,30.3671;120.2491,30.366;120.2491,30.366;120.2503,30.3673;120.2504,30.3676;120.2507,30.3677;120.2512,30.368;120.2516,30.3683;120.2522,30.369;120.2538,30.3704;120.2565,30.3737;120.2592,30.3767;120.2619,30.38;120.2645,30.3832;120.2675,30.3869;120.2717,30.392;120.274,30.3949;120.2755,30.3966;120.2765,30.3978;120.2796,30.403;120.2797,30.4028;120.2805,30.4013;120.2806,30.4008;120.2811,30.3998;120.2812,30.3992;120.2811,30.3991;120.2804,30.3988;120.2805,30.3987;120.2796,30.3983;120.2806,30.396;120.281,30.3961;120.2826,30.3929;120.2831,30.393;120.2837,30.3916;120.2861,30.3922;120.2862,30.3918;120.2883,30.3922;120.2884,30.392;120.2892,30.392;120.2894,30.3917;120.2912,30.392;120.292,30.3919;120.2919,30.3913;120.2911,30.3882;120.2905,30.3861;120.2903,30.3853;120.2899,30.3783;120.2899,30.3778;120.2897,30.3748;120.2897,30.3733;120.2896,30.3716;120.2896,30.3714;120.2896,30.3655;120.2895,30.3647;120.2899,30.3601;120.2899,30.36;120.2902,30.36;120.2909,30.3603;120.291,30.3604;120.291,30.3606;120.2916,30.361;120.2919,30.3612;120.2933,30.3617;120.2961,30.3624;120.2965,30.3624;120.2966,30.3622;120.2967,30.3605;120.297,30.3594;120.2969,30.3593;120.2976,30.3582;120.2977,30.3578;120.2976,30.3575;120.2981,30.3566;120.2981,30.3562;120.2977,30.3549;120.2993,30.3547;120.2993,30.3539;120.2996,30.3529;120.2999,30.3529;120.2999,30.3525;120.2998,30.3523;120.2998,30.3515;120.2966,30.3502;120.2967,30.3496;120.2968,30.3487;120.2968,30.3477;120.297,30.3472;120.2973,30.3467;120.2973,30.3465;120.2966,30.3458;120.2953,30.3443;120.2942,30.3421;120.2936,30.3405;120.2934,30.3404;120.2931,30.34;120.2923,30.3381;120.2921,30.3377;120.2912,30.3351;120.2908,30.3341;120.2906,30.3333;120.2897,30.3303;120.2894,30.3295;120.2893,30.329;120.2891,30.3281';
    const regExp = /;/g;


    const projectionBD09 = new ol.proj.Projection({
        code: 'BD:09',
        extent: [-20037726.37, -11708041.66, 20037726.37, 12474104.17],
        units: 'm',
        axisOrientation: 'neu',
        global: false
    });
    ol.proj.addProjection(projectionBD09);
    ol.proj.addCoordinateTransforms('EPSG:4326', 'BD:09', coordinate => {
        return lngLatToMercator(coordinate);
    }, (coordinate => {
        return mercatorToLngLat(coordinate);
    }));


    const projectionExtentInBD09 = projectionBD09.getExtent();
    console.log(projectionExtentInBD09);
    const resolutions = [];
    const maxZoom = 18;
    const minZoom = 0;
    // 计算百度使用的分辨率
    for (let i = minZoom; i <= maxZoom; i++) {
        resolutions[i] = Math.pow(2, maxZoom - i);
    }

    const tileGrid = new ol.tilegrid.TileGrid({
        origin: [0, 0],
        resolutions: resolutions,
        extent: projectionExtentInBD09
    });

    const baiduSource = new ol.source.TileImage({
        projection: 'BD:09',
        tileGrid: tileGrid,
        tileUrlFunction: (tileCoord) => {
            let [z, x, y] = tileCoord;
            return `http://192.168.107.154:10001/scgis/roadmap?level=${z}&col=${x}&row=${y}`;
        },
        wrapX: false
    });
    // 百度地图层
    const baiduMapLayer = new ol.layer.Tile({
        source: baiduSource
    });

    const centerPoint = [120.282746, 30.350968];

    const centerPointBD09 = ol.proj.transform(centerPoint, 'EPSG:4326', 'BD:09');

    const pathArray = boundString.split(regExp).map(item => {
        const [lng, lat] = item.split(',');
        return ol.proj.transform([Number(lng), Number(lat)], 'EPSG:4326', 'BD:09');
    });

    const feature = new ol.Feature({
        geometry: new ol.geom.Polygon([pathArray])
    });

    const vectorSource = new ol.source.Vector();
    vectorSource.addFeature(feature);

    const vectorLayer = new ol.layer.Vector({
        source: vectorSource,
        style: new ol.style.Style({
            stroke: new ol.style.Stroke({
                color: 'red',
                width: 1
            }),
            fill: new ol.style.Fill({
                color: 'rgba(0,255,255,0.2)'
            })
        })
    });

    // console.log(centerPointBD09);

    const view = new ol.View({
        center: centerPointBD09,
        projection: 'BD:09',
        zoom: 14,
        maxZoom: 18,
        minZoom: 3,
        resolutions
    });

    const map = new ol.Map({
        layers: [
            baiduMapLayer,
            vectorLayer
        ],
        target: 'map',
        view
    });

    // const newCenterPoint = ol.proj.transform([114.507435,37.074612], 'EPSG:4326', 'BD:09');
    // const newCenterPoint = ol.proj.transform([114.507435, 37.074612], 'EPSG:4326', 'BD:09');

    // view.setCenter(newCenterPoint);
    // view.setZoom(8);
</script>
</html>